import axios from '../utils/http'; // 导入http中创建的axios实例
import { Base64 } from '../utils/base';
let baseObj = new Base64()
const base_url = process.env.BASE_API;
const inter_url = '/proxy/cam/proxy/common?api=';

const repairApi = {
  // 保险单列表
  queryBillInsurance(params) {
    let url = 'CustomerSolicitFacade-queryBillInsurance'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params);
  },

  // 保险单详情查询
  queryBillInsuranceById(params) {
    let url = 'CustomerSolicitFacade-queryBillInsuranceById'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params);
  },
    // 保险单识别
  uploadFlies(params) {
    return axios.post(`${base_url}/proxy/ins/rpa/uploadFiles`, params);
  },
}

export default repairApi;
